<template>
  <div class="home_box">
    <div>home</div>
    <div class="btn_box">
      <div class="buttonItem goTo_canvas"
           @click="$goTo({ name: 'Page1' })">
        前往 页面1
      </div>
      <div class="buttonItem goTo_test"
           @click="$goTo({ name: 'Page2' })">
        前往 页面2
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "",
  mixins: [],
  components: {},
  data() {
    return {};
  },
  props: {},
  computed: {},
  watch: {},
  methods: {},
  created() {},
  mounted() {},
  destroyed() {}
};
</script>
<style lang="scss" scoped>
@import "~@/assets/css/scss/common.scss";
.home_box {
  background-color: pink;
  position: relative;
  .btn_box {
    position: absolute;
    top: 10vh;
    left: 20px;
    width: 90%;
    height: 20vh;
    border: 1px solid #333;
    box-sizing: border-box;
    @include flx-dsp($jsc: center, $ali: center, $drt: row);
    .buttonItem {
      width: 40vw;
      height: 5vh;
      border: 1px solid #333;
      border-radius: 5px;
      margin: 0vw 0vw 3vw 0;
      &:active {
        background-color: rgba(196, 196, 196, 0.5);
      }
    }
  }
}
</style>
